package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.CreditApply;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 授信申请Service接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface ICreditApplyService extends IService<CreditApply>{
    /**
     * 查询授信申请
     *
     * @param id 授信申请ID
     * @return 授信申请
     */
    public CreditApply selectCreditApplyById(Long id);

    /**
     * 查询授信申请列表
     *
     * @param creditApply 授信申请
     * @return 授信申请集合
     */
    public List<CreditApply> selectCreditApplyList(CreditApply creditApply);

    /**
     * 新增授信申请
     *
     * @param creditApply 授信申请
     * @return 结果
     */
    public int insertCreditApply(CreditApply creditApply);

    /**
     * 修改授信申请
     *
     * @param creditApply 授信申请
     * @return 结果
     */
    public int updateCreditApply(CreditApply creditApply);

    /**
     * 批量删除授信申请
     *
     * @param ids 需要删除的授信申请ID
     * @return 结果
     */
    public int deleteCreditApplyByIds(Long[] ids);

    /**
     * 删除授信申请信息
     *
     * @param id 授信申请ID
     * @return 结果
     */
    public int deleteCreditApplyById(Long id);

    List<CreditApply> getReturnRunCreditData(Integer andonTaskMinute);

    CreditApply getOneByCust(String custNo);

    CreditApply getOneByUserId(String userId);
}
